<div align="center">
<table width="660" cellpadding="0" cellspacing="0" style="background: #fff;">
    <?php 
    if($hasheadLink)
    {
    ?>
    <tr>
        <td align="right">
            <a href="<?php echo $_SERVER['SCRIPT_URI'];?>" style="color: #000;text-decoration: none;">
                <?php echo __('Having trouble viewing this e-mail? View it in your browser')?>
            </a>
        </td>
    </tr>
    <?
    }
    ?>
    <tr>
        <td style="border: 1px solid #5D471F;width:660px;" align="center">
        
            <table width="100%"  style="background: #5D471F;color:#fff;height:55px" cellpadding="0" cellspacing="0">
            <tr>
                <td width="450" style="font-size: 15px;padding:8px 0px 5px 15px">     
                    <div><?php echo __('GRANDEUR journeys')?></div>
                    <div style="color:#fff;font-size:11px;padding-top:5px">
                        <?php echo __('Extraordinary Experiences of Indochina & beyond')?>
                    </div>
                </td>
                <td style="padding-right:10px" align="right">
                    <a href="<?php echo $root_domain?>">
                        <img src="<?php echoLink('images/logow.gif',true,2)?>" width="130" border="0" />
                    </a>  
                </td>
            </tr>               
            <?php
            $imglink    = GetIntroImg($html->getContent('cImage'),false,false);
            if($imglink){?>
            <tr>
                <td colspan="2">
                    <img src="<?php echoLink($imglink,true,2)?>" width="660" style="display: block;" />
                </td>
            </tr>
            <?php }?>
            </table>
            
            <br />
            
            <table cellpadding="0" cellspacing="0" width="97%" style="border:1px solid #dddddd;border-bottom:0px">            
                <tr style="background: #ffffff;">
                    <td style="font-size: 15px;font-weight:600;color:#025F36;padding:10px;height: 25px">
                        <?php echo $html->getContent('cName')?>
                    </td>
                    <td width="5%" style="padding-right: 10px;">
                        <a href="<?php echo $linksendFriend?>">
                            <img src="<?php echoLink('images/btn_sendtofriend.gif',true,2)?>" width="136" height="21" border="0" /> 
                        </a>
                    </td>
                </tr>
                <tr style="background:#EAEAEA">
                    <td colspan="2" style="padding: 20px;font-size:14px">
                        <div><?php echo __('Dear')?> <?php echo $NameGuest?>!</div>               
                        <div align="left">                    
                            <?php echo $html->getContent('cDescription')?>
                            <FOOTERMSG/>
                        </div>
                    </td>
                </tr>
           </table>
                
           <table  cellpadding="0" cellspacing="0" width="97%" style="border-left:1px solid #dddddd;border-right:1px solid #dddddd">
                <?php
                foreach($contents as $i => $content)
                {
                    $imglink    = GetIntroImg($content['cImage'],true,false);
                ?>
                <tr>
                    <td colspan="2">&nbsp;</td>
                </tr>          
                <tr>
                    <td width="160" align="right" valign="top" style="padding-left: 20px;">
                        <div style="border: 1px solid #cccccc;padding:2px">
                            <img src="<?php echoLink($imglink,true,2)?>" width="160"/>
                         </div>                        
                    </td>
                    <td valign="top">
                        <div style="margin-left:15px;margin-right:15px">
                            <div style="font-size: 15px;font-weight:600;color:#025F36;"><?php echo $content['cName']?></div>
                            <div class="intro" style="color: #343434;font-size: 12px; font-family: Verdana,sans-serif;line-height:18px"><?php echo $content['cIntro']?></div>
                        </div>
                    </td>
                </tr>         
                <?php  
                }
                ?>
                <tr>                
                    <td colspan="2" align="center">
                        <?php echo $html->getContent('cFooter')?>
                    </td>
                </tr>
            </table>
            
            <table  cellpadding="0" cellspacing="0" width="97%" style="border-left:1px solid #dddddd;border-right:1px solid #dddddd;background: #5D471F;">
                <tr>
                    <td style="padding-right:5px;padding-left:10px" height="37">
                        <img src="<?php echoLink('images/logofooter.png',true,2)?>" />                    
                    </td>
                    <td style="color:#fff;font-size:11px;">
                        <?echo getConfig('FooterPage')?>
                    </td>
                    <td class="menubottom" style="font-size:11px;color: #fff;padding-right:10px" align="right">
                        <a target="_blank" style="color: #fff;text-decoration: none;font-size:11px" href="<?php echoLink('about-us',true,2)?>">About GRANDEUR journeys</a> | 
                        <a target="_blank" style="color: #fff;text-decoration: none;font-size:11px" href="<?php echoLink('privacy-statement',true,2)?>">Privacy Policy</a>
                    </td>
                </tr>
            </table>
            
            <br />                    
        </td>
    </tr>
</table>
<?php 
if($hasheadLink)
{
?>
<div style="padding:20px" align="center">
    <a href="<?php echo $linkunsubcribe?>" style="color: #000;text-decoration: none;font-size:11px">
        <?php echo __('Unsubcribe ')?>
    </a>
</div>
<?
}
?>
</div>